[NebulousLabs/Sia] Persist renter cache settings, and renter bandwidth limiter settings (#3052)

DavidVorick commented on this pull request.

> @@ -229,6 +252,17 @@ func TestRenterSaveLoad(t *testing.T) {
if err := equalFiles(f3, rt.renter.files[f3.name]); err != nil {
t.Fatal(err)
}
+
+ newSettings := rt.renter.Settings()
+ if newSettings.MaxDownloadSpeed != newDownSpeed {
+ t.Error(«download settings not being persisted correctly»)
+ }
+ if newSettings.MaxUploadSpeed != newUpSpeed {
+ t.Error(«upload settings not being persisted correctly»)
+ }
+ if newSettings.StreamCacheSize != newCacheSize {
+ t.Error(«cache settings not being persisted correctly»)
+ }

we kept this test around

Добавить комментарий