From 37a58a513d0d1d12a0965231070f0ed505d915d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Cidre?= Date: Thu, 10 May 2018 08:41:29 +0200 Subject: [PATCH] [#930] : False positive e2e test fix --- t/e2e/services/status_api_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/t/e2e/services/status_api_test.go b/t/e2e/services/status_api_test.go index ba9963275..39f37df73 100644 --- a/t/e2e/services/status_api_test.go +++ b/t/e2e/services/status_api_test.go @@ -134,11 +134,12 @@ func (s *StatusAPISuite) testStatusLogin(testParams statusTestParams) *status.Lo result := s.Backend.CallPrivateRPC(basicCall) if testParams.ExpectedError == nil { - s.NotContains(result, "error") var r struct { + Error string `json:"error"` Result *status.LoginResponse `json:"result"` } s.NoError(json.Unmarshal([]byte(result), &r)) + s.Empty(r.Error) return r.Result } @@ -179,11 +180,12 @@ func (s *StatusAPISuite) testStatusSignup(testParams statusTestParams) *status.S result := s.Backend.CallPrivateRPC(basicCall) if testParams.ExpectedError == nil { - s.NotContains(result, "error") var r struct { + Error string `json:"error"` Result *status.SignupResponse `json:"result"` } s.NoError(json.Unmarshal([]byte(result), &r)) + s.Empty(r.Error) return r.Result }