MSP-8172 context.Background() -> s.T().Context()
This commit is contained in:
1 parent
e43a27e5d3
commit
ea81d2716f
6 files changed
+64
-70
No files matched your search
@@ -1,7 +1,6 @@
|
||||
package tests_test
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -41,7 +40,7 @@ func (s *CustomizationTestSuite) SetupTest() {
|
||||
ExpireSec: 0,
|
||||
}
|
||||
cfg, err := assembly.NewLocator(testInstance.Logger(), nil, s.db).
|
||||
Config(context.Background(), remote, time.Minute)
|
||||
Config(s.T().Context(), remote, time.Minute)
|
||||
s.Require().NoError(err)
|
||||
|
||||
server, apiCli := grpct.TestServer(testInstance, cfg.Handler)
|
||||
@@ -58,7 +57,7 @@ func (s *CustomizationTestSuite) TestGetDesign() {
|
||||
Invoke("admin/user/get_design").
|
||||
JsonRequestBody(struct{}{}).
|
||||
JsonResponseBody(&response).
|
||||
Do(context.Background())
|
||||
Do(s.T().Context())
|
||||
s.Require().NoError(err)
|
||||
expected := conf.UIDesign{
|
||||
Name: "test",
|
||||
|
||||
Reference in new issue
Block a user