Skip to content

Commit

Permalink
Disable logs during tests
Browse files Browse the repository at this point in the history
  • Loading branch information
abicky committed Feb 9, 2021
1 parent cd41527 commit 3362685
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/service/service_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package service_test

import (
"io/ioutil"
"log"
"os"
"reflect"
"testing"

Expand All @@ -13,6 +16,11 @@ import (
"github.com/abicky/ecsmec/internal/testing/testutil"
)

func TestMain(m *testing.M) {
log.SetOutput(ioutil.Discard)
os.Exit(m.Run())
}

func expectCopy(
t *testing.T,
ecsMock *mocks.MockECSAPI,
Expand Down

0 comments on commit 3362685

Please sign in to comment.