Split the unit level from the integration level in cmd, builder, link, catalogue, inventory; cheap fixtures for the archive-entry bound, the registry waits and the catalogue copy (issue 895)
This commit is contained in:
@@ -2,7 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"context"
|
||||
"reflect"
|
||||
"strings"
|
||||
"testing"
|
||||
@@ -140,16 +139,6 @@ func TestARunningContainersDataMovingIsAMoveAndAnAddedMountIsNot(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestAPushNamingNoMachineIsRefusedUnlessItSaysAll(t *testing.T) {
|
||||
err := pushCommand(context.Background(), nil)
|
||||
if err == nil || !strings.Contains(err.Error(), "--all") {
|
||||
t.Fatalf("a bare push was not refused: %v", err)
|
||||
}
|
||||
if err := pushCommand(context.Background(), []string{"--all", "--behind"}); err == nil {
|
||||
t.Fatal("--all with --behind was accepted")
|
||||
}
|
||||
}
|
||||
|
||||
func TestTheVerbsCarryReadReplaceAndMove(t *testing.T) {
|
||||
for _, c := range []struct {
|
||||
verb string
|
||||
|
||||
Reference in New Issue
Block a user