Skip to content

Commit

Permalink
drop unrequired params for interop tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jxs committed Jan 27, 2023
1 parent 5c19f08 commit 344b10b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions multidim-interop/go/v0.22/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func main() {
options = append(options, libp2p.Security(libp2ptls.ID, libp2ptls.New))
case "noise":
options = append(options, libp2p.Security(noise.ID, noise.New))
case "quic":
case "":
default:
panic("Unsupported secure channel")
}
Expand All @@ -99,7 +99,7 @@ func main() {
options = append(options, libp2p.Muxer("/yamux/1.0.0", yamux.DefaultTransport))
case "mplex":
options = append(options, libp2p.Muxer("/mplex/6.7.0", mplex.DefaultTransport))
case "quic":
case "":
default:
panic("Unsupported muxer")
}
Expand Down
4 changes: 2 additions & 2 deletions multidim-interop/go/v0.23/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func main() {
options = append(options, libp2p.Security(libp2ptls.ID, libp2ptls.New))
case "noise":
options = append(options, libp2p.Security(noise.ID, noise.New))
case "quic":
case "":
default:
panic("Unsupported secure channel")
}
Expand All @@ -103,7 +103,7 @@ func main() {
options = append(options, libp2p.Muxer("/yamux/1.0.0", yamux.DefaultTransport))
case "mplex":
options = append(options, libp2p.Muxer("/mplex/6.7.0", mplex.DefaultTransport))
case "quic":
case "":
default:
panic("Unsupported muxer")
}
Expand Down
4 changes: 2 additions & 2 deletions multidim-interop/go/v0.24/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ func main() {
options = append(options, libp2p.Security(libp2ptls.ID, libp2ptls.New))
case "noise":
options = append(options, libp2p.Security(noise.ID, noise.New))
case "quic":
case "":
default:
panic("Unsupported secure channel")
}
Expand All @@ -106,7 +106,7 @@ func main() {
options = append(options, libp2p.Muxer("/yamux/1.0.0", yamux.DefaultTransport))
case "mplex":
options = append(options, libp2p.Muxer("/mplex/6.7.0", mplex.DefaultTransport))
case "quic":
case "":
default:
panic("Unsupported muxer")
}
Expand Down
10 changes: 5 additions & 5 deletions multidim-interop/src/generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ export async function buildTestSpecs(versions: Array<Version>): Promise<Array<Co
dialerID: test.id1,
listenerID: test.id2,
transport: test.transport,
muxer: "quic",
security: "quic",
muxer: "",
security: "",
extraEnv: buildExtraEnv(timeoutOverride, test.id1, test.id2)
})))
.concat(webrtcQueryResults
Expand All @@ -121,8 +121,8 @@ export async function buildTestSpecs(versions: Array<Version>): Promise<Array<Co
dialerID: test.id1,
listenerID: test.id2,
transport: test.transport,
muxer: "webrtc",
security: "webrtc",
muxer: "",
security: "",
extraEnv: buildExtraEnv(timeoutOverride, test.id1, test.id2)
})))

Expand Down Expand Up @@ -166,4 +166,4 @@ function buildSpec(containerImages: { [key: string]: string }, { name, dialerID,

function normalizeTransport(transport: string | { name: string, onlyDial: boolean }): { name: string, onlyDial: boolean } {
return typeof transport === "string" ? { name: transport, onlyDial: false } : transport
}
}

0 comments on commit 344b10b

Please sign in to comment.