Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaeljesus committed Mar 7, 2018
1 parent fc5389d commit 33e9929
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion features/mysql_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"time"

"github.com/go-sql-driver/mysql"
"github.com/hellofresh/klepto/pkg/config"
"github.com/hellofresh/klepto/pkg/dumper"
_ "github.com/hellofresh/klepto/pkg/dumper/mysql"
"github.com/hellofresh/klepto/pkg/reader"
Expand Down Expand Up @@ -46,7 +47,7 @@ func (s *MysqlTestSuite) TestExample() {

done := make(chan struct{})
defer close(done)
s.Require().NoError(dmp.Dump(done, config, 4), "Failed to dump")
s.Require().NoError(dmp.Dump(done, new(config.Spec), 4), "Failed to dump")

<-done

Expand Down
6 changes: 3 additions & 3 deletions features/postgres_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ import (
"net/url"
"os"
"path"
"strconv"
"testing"
"time"

"strconv"

"github.com/hellofresh/klepto/pkg/config"
"github.com/hellofresh/klepto/pkg/dumper"
_ "github.com/hellofresh/klepto/pkg/dumper/postgres"
"github.com/hellofresh/klepto/pkg/reader"
Expand Down Expand Up @@ -54,7 +54,7 @@ func (s *PostgresTestSuite) TestExample() {

done := make(chan struct{})
defer close(done)
s.Require().NoError(dmp.Dump(done, 4), "Failed to dump")
s.Require().NoError(dmp.Dump(done, new(config.Spec), 4), "Failed to dump")

<-done

Expand Down

0 comments on commit 33e9929

Please sign in to comment.