Skip to content

Commit

Permalink
test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ohaibbq committed Apr 11, 2024
1 parent 9632345 commit 5d81ed7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions server/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -795,15 +795,16 @@ func TestViewEndingInSemicolon(t *testing.T) {
t.Fatal(err)
}

query := client.Query("SELECT * FROM dataset1.view")
query := client.Query("SELECT * FROM dataset1.view_a")

it, err := query.Read(ctx)
if err != nil {
t.Fatal(err)
}

type ViewRow struct {
Int int
item string
total_count int
}
var viewRows []*ViewRow
for {
Expand All @@ -820,7 +821,7 @@ func TestViewEndingInSemicolon(t *testing.T) {
if len(viewRows) != 1 {
t.Fatalf("failed to get view data. view rows length is %d", len(viewRows))
}
if viewRows[0].Int != 1 {
if viewRows[0].item != "Blueberry Muffins" {
t.Fatal("unexpected view row data")
}
}
Expand Down

0 comments on commit 5d81ed7

Please sign in to comment.