summaryrefslogtreecommitdiff
path: root/cmd/tfstate
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cmd/tfstated/post_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/tfstated/post_test.go b/cmd/tfstated/post_test.go
index 6eb68f2..fd66dc4 100644
--- a/cmd/tfstated/post_test.go
+++ b/cmd/tfstated/post_test.go
@@ -53,7 +53,7 @@ func TestPost(t *testing.T) {
err := db.QueryRow(`SELECT COUNT(versions.id)
FROM versions
JOIN states ON states.id = versions.state_id
- WHERE states.name = "/test_post"`).Scan(&n)
+ WHERE states.path = "/test_post"`).Scan(&n)
if err != nil {
t.Fatalf("failed to count versions for the /test_post state: %s", err)
}