Skip to content

Commit

Permalink
test: test gofmt only with the latest go version
Browse files Browse the repository at this point in the history
since gofmt output may change between versions, only test gofmt with the latest
(currently go1.11) go version.
  • Loading branch information
sgotti committed Aug 27, 2018
1 parent d88775a commit 5511496
Show file tree
Hide file tree
Showing 3 changed files with 384 additions and 385 deletions.
12 changes: 6 additions & 6 deletions cmd/keeper/cmd/keeper_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func TestGenerateHBA(t *testing.T) {
}{
{
DefaultSUReplAccessMode: cluster.SUReplAccessAll,
dbUID: "db1",
dbUID: "db1",
out: []string{
"local postgres superuser md5",
"local replication repluser md5",
Expand All @@ -136,7 +136,7 @@ func TestGenerateHBA(t *testing.T) {
},
{
DefaultSUReplAccessMode: cluster.SUReplAccessAll,
dbUID: "db2",
dbUID: "db2",
out: []string{
"local postgres superuser md5",
"local replication repluser md5",
Expand All @@ -150,7 +150,7 @@ func TestGenerateHBA(t *testing.T) {
},
{
DefaultSUReplAccessMode: cluster.SUReplAccessAll,
dbUID: "db1",
dbUID: "db1",
pgHBA: []string{
"host all all 192.168.0.0/24 md5",
},
Expand All @@ -166,7 +166,7 @@ func TestGenerateHBA(t *testing.T) {
},
{
DefaultSUReplAccessMode: cluster.SUReplAccessAll,
dbUID: "db2",
dbUID: "db2",
pgHBA: []string{
"host all all 192.168.0.0/24 md5",
},
Expand All @@ -182,7 +182,7 @@ func TestGenerateHBA(t *testing.T) {
},
{
DefaultSUReplAccessMode: cluster.SUReplAccessStrict,
dbUID: "db1",
dbUID: "db1",
out: []string{
"local postgres superuser md5",
"local replication repluser md5",
Expand All @@ -194,7 +194,7 @@ func TestGenerateHBA(t *testing.T) {
},
{
DefaultSUReplAccessMode: cluster.SUReplAccessStrict,
dbUID: "db2",
dbUID: "db2",
out: []string{
"local postgres superuser md5",
"local replication repluser md5",
Expand Down
Loading

0 comments on commit 5511496

Please sign in to comment.