Skip to content

Commit

Permalink
skip failing test instead of commenting
Browse files Browse the repository at this point in the history
Signed-off-by: Plamen Petrov <plamb0brt@gmail.com>
  • Loading branch information
plamenmpetrov authored and ustiugov committed Oct 29, 2020
1 parent 3fe9e1e commit b8f05b6
Showing 1 changed file with 27 additions and 16 deletions.
43 changes: 27 additions & 16 deletions ctriface/failing_test.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
package ctriface

/*
import (
"context"
"os"
"testing"
"time"

ctrdlog "github.com/containerd/containerd/log"
"github.com/containerd/containerd/namespaces"
log "github.com/sirupsen/logrus"
"github.com/stretchr/testify/require"
)

func TestStartSnapStop(t *testing.T) {
// BROKEN BECAUSE StopVM does not work yet.
t.Skip("skipping failing test")
log.SetFormatter(&log.TextFormatter{
TimestampFormat: ctrdlog.RFC3339NanoFixed,
FullTimestamp: true,
Expand All @@ -21,27 +33,26 @@ func TestStartSnapStop(t *testing.T) {

vmID := "2"

message, _, err := orch.StartVM(ctx, vmID, "ustiugov/helloworld:runner_workload")
require.NoError(t, err, "Failed to start VM, "+message)
_, _, err := orch.StartVM(ctx, vmID, "ustiugov/helloworld:runner_workload")
require.NoError(t, err, "Failed to start VM")

message, err = orch.PauseVM(ctx, vmID)
require.NoError(t, err, "Failed to pause VM, "+message)
err = orch.PauseVM(ctx, vmID)
require.NoError(t, err, "Failed to pause VM")

message, err = orch.CreateSnapshot(ctx, vmID)
require.NoError(t, err, "Failed to create snapshot of VM, "+message)
err = orch.CreateSnapshot(ctx, vmID)
require.NoError(t, err, "Failed to create snapshot of VM")

message, err = orch.Offload(ctx, vmID)
require.NoError(t, err, "Failed to offload VM, "+message)
err = orch.Offload(ctx, vmID)
require.NoError(t, err, "Failed to offload VM")

message, _, err = orch.LoadSnapshot(ctx, vmID)
require.NoError(t, err, "Failed to load snapshot of VM, "+message)
_, err = orch.LoadSnapshot(ctx, vmID)
require.NoError(t, err, "Failed to load snapshot of VM")

message, _, err = orch.ResumeVM(ctx, vmID)
require.NoError(t, err, "Failed to resume VM, "+message)
_, err = orch.ResumeVM(ctx, vmID)
require.NoError(t, err, "Failed to resume VM")

message, err = orch.StopSingleVMOnly(ctx, vmID)
require.NoError(t, err, "Failed to stop VM, "+message)
err = orch.StopSingleVM(ctx, vmID)
require.NoError(t, err, "Failed to stop VM")

orch.Cleanup()
}
*/

0 comments on commit b8f05b6

Please sign in to comment.