X-Git-Url: https://git.r.bdr.sh/rbdr/mobius/blobdiff_plain/625b0580010c7fbf183c53e388ceba8356df76f4..5c34f8752938764668d829fb284626b9c62c5475:/hotline/server_blackbox_test.go diff --git a/hotline/server_blackbox_test.go b/hotline/server_blackbox_test.go index b8990ad..09687ad 100644 --- a/hotline/server_blackbox_test.go +++ b/hotline/server_blackbox_test.go @@ -22,7 +22,7 @@ type testCase struct { } func (tt *testCase) Setup(srv *Server) error { - if err := srv.NewUser(tt.account.Login, tt.account.Name, NegatedUserString([]byte(tt.account.Password)), *tt.account.Access); err != nil { + if err := srv.NewUser(tt.account.Login, tt.account.Name, string(negateString([]byte(tt.account.Password))), *tt.account.Access); err != nil { return err } @@ -122,7 +122,6 @@ func TestHandshake(t *testing.T) { // } //} - func TestNewUser(t *testing.T) { srv, _, _ := StartTestServer() @@ -310,8 +309,6 @@ func TestNewUser(t *testing.T) { } } - - // equal is a utility function used only in tests that determines if transactions are equal enough func (t Transaction) equal(otherT Transaction) bool { t.ID = []byte{0, 0, 0, 0}