Skip to content

Commit

Permalink
remove vector workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
CascadingRadium committed Apr 22, 2024
1 parent b82c07e commit 83adb66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ jobs:
- name: Test
run: |
go version
go test -race ./...
go test -race -tags=vectors ./...
go test -race ./...
12 changes: 6 additions & 6 deletions index_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,8 +401,8 @@ func TestBytesRead(t *testing.T) {
}
stats, _ := idx.StatsMap()["index"].(map[string]interface{})
prevBytesRead, _ := stats["num_bytes_read_at_query_time"].(uint64)
if prevBytesRead != 22049 && res.Cost == prevBytesRead {
t.Fatalf("expected bytes read for query string 22049, got %v",
if prevBytesRead != 21639 && res.Cost == prevBytesRead {
t.Fatalf("expected bytes read for query string 21639, got %v",
prevBytesRead)
}

Expand Down Expand Up @@ -553,8 +553,8 @@ func TestBytesReadStored(t *testing.T) {

stats, _ := idx.StatsMap()["index"].(map[string]interface{})
bytesRead, _ := stats["num_bytes_read_at_query_time"].(uint64)
if bytesRead != 11911 && bytesRead == res.Cost {
t.Fatalf("expected the bytes read stat to be around 11911, got %v", bytesRead)
if bytesRead != 11501 && bytesRead == res.Cost {
t.Fatalf("expected the bytes read stat to be around 11501, got %v", bytesRead)
}
prevBytesRead := bytesRead

Expand Down Expand Up @@ -624,8 +624,8 @@ func TestBytesReadStored(t *testing.T) {

stats, _ = idx1.StatsMap()["index"].(map[string]interface{})
bytesRead, _ = stats["num_bytes_read_at_query_time"].(uint64)
if bytesRead != 4097 && bytesRead == res.Cost {
t.Fatalf("expected the bytes read stat to be around 4097, got %v", bytesRead)
if bytesRead != 3687 && bytesRead == res.Cost {
t.Fatalf("expected the bytes read stat to be around 3687, got %v", bytesRead)
}
prevBytesRead = bytesRead

Expand Down

0 comments on commit 83adb66

Please sign in to comment.