server/embed/config_test.go: Add unit test for socket options

This commit is contained in:
Lili Cosic
2021-05-19 18:35:37 +02:00
parent 73c530de83
commit 7957f4461d
2 changed files with 20 additions and 12 deletions

View File

@ -29,10 +29,11 @@ func AssertEqual(t *testing.T, e, a interface{}, msg ...string) {
return
}
s := ""
if len(msg) > 1 {
if len(msg) > 0 {
s = msg[0] + ": "
}
s = fmt.Sprintf("%sexpected %+v, got %+v", s, e, a)
s = fmt.Sprintf("%s:expected %+v, got %+v", s, e, a)
FatalStack(t, s)
}