Skip to content

Commit

Permalink
test: stop pod
Browse files Browse the repository at this point in the history
  • Loading branch information
hexfusion committed Jun 23, 2023
1 parent 46d53b0 commit a965d1f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vms/rpcchainvm/runtime/podman/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,13 @@ func TestSchedulePod(t *testing.T) {
ctx, err := bindings.NewConnection(context.Background(), socket)
require.NoError(err)

report, err := kube.PlayWithBody(ctx, bytes.NewReader(podBytes), &kube.PlayOptions{})
upreport, err := kube.PlayWithBody(ctx, bytes.NewReader(podBytes), &kube.PlayOptions{})
require.NoError(err)

fmt.Printf("%#v\n", report)
fmt.Printf("%#v\n", upreport)

downreport, err := kube.DownWithBody(ctx, bytes.NewReader(podBytes), kube.DownOptions{})
require.NoError(err)

fmt.Printf("%#v\n", downreport)
}

0 comments on commit a965d1f

Please sign in to comment.