Skip to content

Commit

Permalink
Update e2e/e2e_test.go
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
naveensrinivasan and coderabbitai[bot] authored Nov 19, 2024
1 parent f68ea35 commit 9a937c3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions e2e/e2e_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ func TestParseAndExecute_E2E(t *testing.T) {
t.Errorf("CustomLeaderboard() error = %v, wantErr %v", err, tt.wantErr)
return
}
if len(nodes) == 0 {
t.Errorf("CustomLeaderboard() returned no queries, expected at least one")
return
}
if !tt.wantErr && len(nodes[0].Output) != int(tt.want) {
t.Errorf("CustomLeaderboard() got the first nodes output len of = %v, want output len of %v", nodes[0].Output, tt.want)
}
Expand Down

0 comments on commit 9a937c3

Please sign in to comment.