Skip to content

Commit af34838

Browse files
committed
fix: Test fixtures must now have different results if they have different hashes
1 parent 73c43a7 commit af34838

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/querytee/goldfish/manager_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ func TestManagerResultPersistenceModes(t *testing.T) {
562562
req.Header.Set("X-Scope-OrgID", "tenant1")
563563

564564
cellA := &ResponseData{
565-
Body: []byte(`{"status":"success","data":{"resultType":"matrix","result":[]}}`),
565+
Body: []byte(`{"status":"success","data":{"resultType":"scalar","result":[1: "1"]}}`),
566566
StatusCode: 200,
567567
Duration: 90 * time.Millisecond,
568568
Stats: goldfish.QueryStats{ExecTimeMs: 90},
@@ -572,7 +572,7 @@ func TestManagerResultPersistenceModes(t *testing.T) {
572572
}
573573

574574
cellB := &ResponseData{
575-
Body: []byte(`{"status":"success","data":{"resultType":"matrix","result":[]}}`),
575+
Body: []byte(`{"status":"success","data":{"resultType":"scalar","result":[1: "2"]}}`),
576576
StatusCode: 200,
577577
Duration: 110 * time.Millisecond,
578578
Stats: goldfish.QueryStats{ExecTimeMs: 110},

0 commit comments

Comments
 (0)