Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerKSI committed Nov 28, 2023
1 parent 1f248df commit 61be9bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions yoda/executor/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ func TestParseExecutor(t *testing.T) {

func TestParseExecutorWithoutRawQuery(t *testing.T) {
_, _, _, err := parseExecutor("beeb:www.beebprotocol.com")
require.EqualError(t, err, "Invalid timeout, executor requires query timeout")
require.EqualError(t, err, "invalid timeout, executor requires query timeout")
}

func TestParseExecutorInvalidExecutorError(t *testing.T) {
_, _, _, err := parseExecutor("beeb")
require.EqualError(t, err, "Invalid executor, cannot parse executor: beeb")
require.EqualError(t, err, "invalid executor, cannot parse executor: beeb")
}

func TestParseExecutorInvalidTimeoutError(t *testing.T) {
_, _, _, err := parseExecutor("beeb:www.beebprotocol.com?timeout=beeb")
require.EqualError(t, err, "Invalid timeout, cannot parse duration with error: time: invalid duration \"beeb\"")
require.EqualError(t, err, "invalid timeout, cannot parse duration with error: time: invalid duration \"beeb\"")
}

0 comments on commit 61be9bf

Please sign in to comment.