Skip to content

Commit 8dfe6ad

Browse files
committed
PR feedback, v2
1 parent 90eff1f commit 8dfe6ad

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/feature/features_test.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
func TestDefaults(t *testing.T) {
1616
t.Parallel()
1717
gate := NewGate()
18-
ctx := NewContext(context.Background(), gate)
1918

2019
assert.Assert(t, false == gate.Enabled(AppendCustomQueries))
2120
assert.Assert(t, true == gate.Enabled(AutoCreateUserSchema))
@@ -25,18 +24,14 @@ func TestDefaults(t *testing.T) {
2524
assert.Assert(t, false == gate.Enabled(PGBouncerSidecars))
2625
assert.Assert(t, false == gate.Enabled(TablespaceVolumes))
2726
assert.Assert(t, false == gate.Enabled(VolumeSnapshots))
28-
29-
assert.Equal(t, ShowAssigned(ctx), "")
3027
}
3128

3229
func TestStringFormat(t *testing.T) {
3330
t.Parallel()
3431
gate := NewGate()
35-
ctx := NewContext(context.Background(), gate)
3632

3733
assert.NilError(t, gate.Set(""))
3834
assert.NilError(t, gate.Set("TablespaceVolumes=true"))
39-
assert.Equal(t, ShowAssigned(ctx), "TablespaceVolumes=true")
4035
assert.Assert(t, true == gate.Enabled(TablespaceVolumes))
4136

4237
err := gate.Set("NotAGate=true")

0 commit comments

Comments
 (0)