bugfix: unittests
This commit is contained in:
parent
0c5a99cc03
commit
a8e770726a
|
|
@ -63,7 +63,7 @@ func TestExecNonExistant(t *testing.T) {
|
|||
wg.Wait()
|
||||
|
||||
assert.Equal(t, int32(-1337), req.logEntry.ExitCode, "Log entry is set to an internal error code")
|
||||
assert.Equal(t, "", req.logEntry.ActionIcon, "Log entry icon wasnt found")
|
||||
assert.Equal(t, "💩", req.logEntry.ActionIcon, "Log entry icon is a poop (not found)")
|
||||
}
|
||||
|
||||
func TestArgumentNameCamelCase(t *testing.T) {
|
||||
|
|
|
|||
|
|
@ -100,9 +100,13 @@ func testBase(t *testing.T, expire int64, expectCode int) {
|
|||
*/
|
||||
|
||||
go func() {
|
||||
if lis == nil {
|
||||
t.Errorf("couldn't start server: listener is null")
|
||||
} else {
|
||||
if err := srv.Serve(lis); err != nil {
|
||||
t.Errorf("couldn't start server: %v", err)
|
||||
}
|
||||
}
|
||||
}()
|
||||
|
||||
// make http client and send request to myself
|
||||
|
|
|
|||
Loading…
Reference in New Issue