fstest: Fix TestPurge causing errors with subsequent tests on azure

Before this change TestPurge would remove a container and subsequent
tests would fail because the container was still being deleted so
couldn't be created.

This was fixed by introducing an fstest.NewRunIndividual() test runner
for TestPurge which causes the test to be run on a new container.
This commit is contained in:
Nick Craig-Wood
2018-11-14 17:14:02 +00:00
parent f7ce2e8d95
commit f92beb4e14
2 changed files with 22 additions and 5 deletions

View File

@@ -404,7 +404,7 @@ func TestRcat(t *testing.T) {
}
func TestPurge(t *testing.T) {
r := fstest.NewRun(t)
r := fstest.NewRunIndividual(t) // make new container (azureblob has delayed mkdir after rmdir)
defer r.Finalise()
r.Mkdir(r.Fremote)