From 8d1a5731f3d405d3ef210b38c5b8a5923b311f54 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 27 Feb 2016 13:38:05 +0100 Subject: [PATCH] Remove integration test for 'optimize' --- src/cmds/restic/integration_test.go | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/cmds/restic/integration_test.go b/src/cmds/restic/integration_test.go index c8be04c5a..8c42c7548 100644 --- a/src/cmds/restic/integration_test.go +++ b/src/cmds/restic/integration_test.go @@ -110,11 +110,6 @@ func cmdRebuildIndex(t testing.TB, global GlobalOptions) { OK(t, cmd.Execute(nil)) } -func cmdOptimize(t testing.TB, global GlobalOptions) { - cmd := &CmdOptimize{global: &global} - OK(t, cmd.Execute(nil)) -} - func cmdLs(t testing.TB, global GlobalOptions, snapshotID string) []string { var buf bytes.Buffer global.stdout = &buf @@ -771,25 +766,6 @@ var optimizeTests = []struct { }, } -func TestOptimizeRemoveUnusedBlobs(t *testing.T) { - for i, test := range optimizeTests { - withTestEnvironment(t, func(env *testEnvironment, global GlobalOptions) { - SetupTarTestFixture(t, env.base, test.testFilename) - - for id := range test.snapshots { - OK(t, removeFile(filepath.Join(env.repo, "snapshots", id.String()))) - } - - cmdOptimize(t, global) - output := cmdCheckOutput(t, global) - - if len(output) > 0 { - t.Errorf("expected no output for check in test %d, got:\n%v", i, output) - } - }) - } -} - func TestCheckRestoreNoLock(t *testing.T) { withTestEnvironment(t, func(env *testEnvironment, global GlobalOptions) { datafile := filepath.Join("testdata", "small-repo.tar.gz")