Skip to content

Commit

Permalink
Support config default network name for nerdctl
Browse files Browse the repository at this point in the history
Signed-off-by: Zheao.Li <me@manjusaka.me>
  • Loading branch information
Zheaoli committed Jun 21, 2022
1 parent d76d08b commit 96429ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/nerdctl/run_network_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ func TestRunWithDefaultNetworkInConfig(t *testing.T) {
t.Fatal(err)
}
w := bufio.NewWriter(fp)
if _, err := w.Write([]byte(fmt.Sprintf(`default_network_name = "%s"\n`, networkName))); err != nil {
if _, err := w.Write([]byte(fmt.Sprintf("default_network_name = \"%s\"", networkName))); err != nil {
t.Fatal(err)
}
_ = w.Flush()
Expand Down

0 comments on commit 96429ea

Please sign in to comment.