Skip to content

Commit

Permalink
refactor: switch to real flag in sharness
Browse files Browse the repository at this point in the history
does not cause issue locally, let's see how behaves on CI
  • Loading branch information
lidel authored and marten-seemann committed Oct 30, 2021
1 parent f183946 commit 5cffbd7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/node/libp2p/libp2p.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func ForceReachability(val *config.OptionalString) func() (opts Libp2pOpts, err
if val.IsDefault() {
return
}
v := val.WithDefault("unrecognized") // TODO: change to String() when https://github.com/ipfs/go-ipfs-config/pull/153 is merged
v := val.WithDefault("unrecognized")
switch v {
case "public":
opts.Opts = append(opts.Opts, libp2p.ForceReachabilityPublic())
Expand Down
2 changes: 1 addition & 1 deletion test/sharness/t0182-circuit-relay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test_expect_success 'start up nodes for configuration' '
'

test_expect_success 'set ForceReachability to public relay node' '
ipfsi 1 config --json Internalxyz.Libp2pForceReachability "\"public\""
ipfsi 1 config Internal.Libp2pForceReachability public
'

test_expect_success 'restart nodes' '
Expand Down

0 comments on commit 5cffbd7

Please sign in to comment.