mirror of
https://github.com/rclone/rclone.git
synced 2026-09-15 07:41:23 -04:00
gitannex: speed up the end to end tests by removing redundant checks
The migration test ran the full "git annex testremote" suite for every layout mode after verifying the migration with "git annex fsck". The fsck calls already prove the migrated data is accessible via the builtin special remote, and TestEndToEnd covers the special remote protocol with testremote, so the extra five full testremote runs duplicated coverage at a cost of tens of seconds each on CI.
This commit is contained in:
1 parent
01d32dbde5
commit
c4e82700cb
1 file changed
+3
-4
@@ -252,8 +252,9 @@ func TestEndToEnd(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
// For each layout mode, migrate a single remote from git-annex-remote-rclone to
|
||||
// git-annex-remote-rclone-builtin and run `git annex testremote`.
|
||||
// For each layout mode, migrate a single remote from git-annex-remote-rclone
|
||||
// to git-annex-remote-rclone-builtin and verify that annexed files remain
|
||||
// accessible.
|
||||
func TestEndToEndMigration(t *testing.T) {
|
||||
skipE2eTestIfNecessary(t)
|
||||
|
||||
@@ -303,8 +304,6 @@ func TestEndToEndMigration(t *testing.T) {
|
||||
)
|
||||
|
||||
tc.runInRepo(t, "git", "annex", "fsck", "--from=MigratedRemote", "foo")
|
||||
|
||||
tc.runInRepo(t, "git", "annex", "testremote", "MigratedRemote")
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user