Skip to content

Commit

Permalink
fix: cli flag tests
Browse files Browse the repository at this point in the history
  • Loading branch information
natesales committed Nov 5, 2023
1 parent fa864cd commit 7fbd6e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

"github.com/stretchr/testify/assert"

"github.com/natesales/q/cli"
"github.com/natesales/q/transport"
)

Expand Down Expand Up @@ -233,7 +234,7 @@ func TestMainChaosClass(t *testing.T) {

func TestMainParsePlusFlags(t *testing.T) {
clearOpts()
parsePlusFlags([]string{"+dnssec", "+nord"})
cli.ParsePlusFlags(&opts, []string{"+dnssec", "+nord"})
assert.True(t, opts.DNSSEC)
assert.False(t, opts.RecursionDesired)
}
Expand Down

0 comments on commit 7fbd6e0

Please sign in to comment.