Skip to content

Commit

Permalink
error during initialization if misusing the default protocolID
Browse files Browse the repository at this point in the history
  • Loading branch information
aschmahmann committed Mar 9, 2020
1 parent bcefa03 commit 31a4cb1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dht_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1559,6 +1559,9 @@ func TestProvideDisabled(t *testing.T) {
var (
optsA, optsB []Option
)
optsA = append(optsA, opts.Protocols("/dht/provMaybeDisabled"))
optsB = append(optsB, opts.Protocols("/dht/provMaybeDisabled"))

if !enabledA {
optsA = append(optsA, DisableProviders())
}
Expand Down
3 changes: 3 additions & 0 deletions records_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,9 @@ func TestValuesDisabled(t *testing.T) {
var (
optsA, optsB []Option
)
optsA = append(optsA, dhtopt.Protocols("/dht/valuesMaybeDisabled"))
optsB = append(optsB, dhtopt.Protocols("/dht/valuesMaybeDisabled"))

if !enabledA {
optsA = append(optsA, DisableValues())
}
Expand Down

0 comments on commit 31a4cb1

Please sign in to comment.