states: Fix TestResourceInstanceDeposeCurrentObject

This was missed when changing the signature of deposeCurrentObject in an
earlier commit.
This commit is contained in:
Martin Atkins 2018-09-28 16:30:06 -07:00
parent 3da04ef9fc
commit 2b5d9506b1
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ func TestResourceInstanceDeposeCurrentObject(t *testing.T) {
var dk DeposedKey
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)
if got := is.Current; got != nil {
@ -33,7 +33,7 @@ func TestResourceInstanceDeposeCurrentObject(t *testing.T) {
})
t.Run("second depose", func(t *testing.T) {
notDK := is.deposeCurrentObject()
notDK := is.deposeCurrentObject(NotDeposed)
if notDK != NotDeposed {
t.Errorf("got deposedKey %q; want NotDeposed", notDK)
}