Skip to content

Commit

Permalink
fix: test: remove test network with special pool first
Browse files Browse the repository at this point in the history
Signed-off-by: thediveo <[email protected]>
  • Loading branch information
thediveo committed Jun 24, 2024
1 parent 0cc083e commit 06b3079
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions network_create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ var _ = Describe("creating custom networks", Ordered, func() {
DeferCleanup(func(ctx context.Context) {
sess.Close(ctx)
})
_ = sess.Client().NetworkRemove(ctx, name)
nw := Successful(sess.CreateNetwork(ctx, name,
net.WithInternal(),
bridge.WithBridgeName("brrr"),
Expand All @@ -70,6 +71,7 @@ var _ = Describe("creating custom networks", Ordered, func() {
// https://en.wikipedia.org/wiki/Reserved_IP_addresses
"0.0.1.0/24", // a.k.a. "local" or "this"
ipam.WithRange("0.0.1.16/28")))))
defer func() { _ = nw.Remove(ctx) }()

var buff safe.Buffer
Expect(sess.Run(ctx, "busybox", run.WithCommand(
Expand Down

0 comments on commit 06b3079

Please sign in to comment.