Skip to content

Commit

Permalink
fix: a unit test error
Browse files Browse the repository at this point in the history
  • Loading branch information
liu-hm19 committed Nov 13, 2024
1 parent 52b2627 commit 704a1c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/infra/persistence/util_test.go
Original file line number Diff line number Diff line change
@@ -110,7 +110,7 @@ func TestGetStackQuery(t *testing.T) {
filter: &entity.StackFilter{
OrgID: 42,
},
expectedQuery: "Project.organization_id = ?",
expectedQuery: "project.organization_id = ?",
expectedArgs: []interface{}{"42"},
},
{
@@ -126,7 +126,7 @@ func TestGetStackQuery(t *testing.T) {
filter: &entity.StackFilter{
Path: "example",
},
expectedQuery: "Stack.path = ?",
expectedQuery: "stack.path = ?",
expectedArgs: []interface{}{"example"},
},
{
@@ -136,7 +136,7 @@ func TestGetStackQuery(t *testing.T) {
ProjectID: 1,
Path: "example",
},
expectedQuery: "Project.organization_id = ? AND project_id = ? AND Stack.path = ?",
expectedQuery: "project.organization_id = ? AND project_id = ? AND stack.path = ?",
expectedArgs: []interface{}{"42", "1", "example"},
},
}

0 comments on commit 704a1c2

Please sign in to comment.