chore: maybe?

This commit is contained in:
Vilsol 2023-12-28 02:38:38 +02:00
parent b2d8e22977
commit 87c7327253
No known key found for this signature in database

View file

@ -80,20 +80,30 @@ func TestAddFTPInstallation(t *testing.T) {
return
}
err := retry.Do(func() error {
ctx, err := InitCLI(false)
testza.AssertNoError(t, err)
if err != nil {
return err
}
err = ctx.Wipe()
testza.AssertNoError(t, err)
if err != nil {
return err
}
err = ctx.ReInit()
testza.AssertNoError(t, err)
if err != nil {
return err
}
ctx.Provider = MockProvider{}
profileName := "InstallationTest"
profile, err := ctx.Profiles.AddProfile(profileName)
testza.AssertNoError(t, err)
if err != nil {
return err
}
testza.AssertNoError(t, profile.AddMod("AreaActions", "1.6.5"))
testza.AssertNoError(t, profile.AddMod("RefinedPower", "3.2.10"))
@ -101,7 +111,6 @@ func TestAddFTPInstallation(t *testing.T) {
if serverLocation != "" {
time.Sleep(time.Second)
err := retry.Do(func() error {
testza.AssertNoError(t, os.RemoveAll(filepath.Join(serverLocation, "FactoryGame", "Mods")))
time.Sleep(time.Second)
@ -122,6 +131,15 @@ func TestAddFTPInstallation(t *testing.T) {
if err != nil {
return err
}
testza.AssertNoError(t, err)
time.Sleep(time.Second)
}
err = ctx.Wipe()
if err != nil {
return err
}
return nil
},
@ -135,12 +153,6 @@ func TestAddFTPInstallation(t *testing.T) {
}),
)
testza.AssertNoError(t, err)
time.Sleep(time.Second)
}
err = ctx.Wipe()
testza.AssertNoError(t, err)
}
func TestAddSFTPInstallation(t *testing.T) {