Skip to content

Commit

Permalink
PR feedback, v2
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminjb committed Nov 6, 2024
1 parent 90eff1f commit 8dfe6ad
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions internal/feature/features_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
func TestDefaults(t *testing.T) {
t.Parallel()
gate := NewGate()
ctx := NewContext(context.Background(), gate)

assert.Assert(t, false == gate.Enabled(AppendCustomQueries))
assert.Assert(t, true == gate.Enabled(AutoCreateUserSchema))
Expand All @@ -25,18 +24,14 @@ func TestDefaults(t *testing.T) {
assert.Assert(t, false == gate.Enabled(PGBouncerSidecars))
assert.Assert(t, false == gate.Enabled(TablespaceVolumes))
assert.Assert(t, false == gate.Enabled(VolumeSnapshots))

assert.Equal(t, ShowAssigned(ctx), "")
}

func TestStringFormat(t *testing.T) {
t.Parallel()
gate := NewGate()
ctx := NewContext(context.Background(), gate)

assert.NilError(t, gate.Set(""))
assert.NilError(t, gate.Set("TablespaceVolumes=true"))
assert.Equal(t, ShowAssigned(ctx), "TablespaceVolumes=true")
assert.Assert(t, true == gate.Enabled(TablespaceVolumes))

err := gate.Set("NotAGate=true")
Expand Down

0 comments on commit 8dfe6ad

Please sign in to comment.