states: Fix TestResourceInstanceDeposeCurrentObject
This was missed when changing the signature of deposeCurrentObject in an earlier commit.
This commit is contained in:
parent
3da04ef9fc
commit
2b5d9506b1
|
@ -15,7 +15,7 @@ func TestResourceInstanceDeposeCurrentObject(t *testing.T) {
|
||||||
var dk DeposedKey
|
var dk DeposedKey
|
||||||
|
|
||||||
t.Run("first depose", func(t *testing.T) {
|
t.Run("first depose", func(t *testing.T) {
|
||||||
dk = is.deposeCurrentObject() // dk is randomly-generated but should be eight characters long
|
dk = is.deposeCurrentObject(NotDeposed) // dk is randomly-generated but should be eight characters long
|
||||||
t.Logf("deposedKey is %q", dk)
|
t.Logf("deposedKey is %q", dk)
|
||||||
|
|
||||||
if got := is.Current; got != nil {
|
if got := is.Current; got != nil {
|
||||||
|
@ -33,7 +33,7 @@ func TestResourceInstanceDeposeCurrentObject(t *testing.T) {
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("second depose", func(t *testing.T) {
|
t.Run("second depose", func(t *testing.T) {
|
||||||
notDK := is.deposeCurrentObject()
|
notDK := is.deposeCurrentObject(NotDeposed)
|
||||||
if notDK != NotDeposed {
|
if notDK != NotDeposed {
|
||||||
t.Errorf("got deposedKey %q; want NotDeposed", notDK)
|
t.Errorf("got deposedKey %q; want NotDeposed", notDK)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue