chore: stabilize lint and verify builds
This commit is contained in:
@@ -61,25 +61,7 @@ func Test_MediaProcessWorkerLocal(t *testing.T) {
|
||||
testx.Serve(providers, t, func(p MediaProcessWorkerTestSuiteInjectParams) {
|
||||
suite.Run(t, &MediaProcessWorkerLocalSuite{MediaProcessWorkerTestSuiteInjectParams: p})
|
||||
})
|
||||
}
|
||||
|
||||
func Test_MediaProcessWorkerS3(t *testing.T) {
|
||||
originEnv := os.Getenv("ENV_LOCAL")
|
||||
if err := os.Setenv("ENV_LOCAL", "minio"); err != nil {
|
||||
t.Fatalf("set ENV_LOCAL failed: %v", err)
|
||||
}
|
||||
t.Cleanup(func() {
|
||||
if originEnv == "" {
|
||||
_ = os.Unsetenv("ENV_LOCAL")
|
||||
} else {
|
||||
_ = os.Setenv("ENV_LOCAL", originEnv)
|
||||
}
|
||||
})
|
||||
|
||||
providers := testx.Default()
|
||||
testx.Serve(providers, t, func(p MediaProcessWorkerTestSuiteInjectParams) {
|
||||
suite.Run(t, &MediaProcessWorkerS3Suite{MediaProcessWorkerTestSuiteInjectParams: p})
|
||||
})
|
||||
}
|
||||
|
||||
func (s *MediaProcessWorkerLocalSuite) Test_Work_Local() {
|
||||
|
||||
Reference in New Issue
Block a user