Skip to content

Commit

Permalink
Refactor request parsing test
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts committed Sep 8, 2022
1 parent 86e9b2f commit ff5e499
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions api/turing/api/request/request_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,8 @@ func TestRequestBuildRouterVersionWithInvalidStandardEnsembler(t *testing.T) {
testRouterConfig.Ensembler = &data.testEnsembler

result, err := testRouterConfig.BuildRouterVersion(router, &defaults, cryptoSvc, expSvc, ensemblerSvc)
if data.err == "" {
assert.Nil(t, result)
} else {
assert.EqualError(t, err, data.err)
}
assert.Nil(t, result)
assert.EqualError(t, err, data.err)
})
}
}
Expand Down

0 comments on commit ff5e499

Please sign in to comment.