chore(tfstated): rename state "name" to "path" for consistency

This commit is contained in:
Julien Dessaux 2024-11-13 21:08:48 +01:00
parent bd8558549e
commit 4020344eda
Signed by: adyxax
GPG key ID: F92E51B86E07177E
4 changed files with 20 additions and 20 deletions

View file

@ -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)
}