diff --git a/engine/caches.go b/engine/caches.go index cf2694103..6f7b72788 100644 --- a/engine/caches.go +++ b/engine/caches.go @@ -53,6 +53,11 @@ func init() { gob.Register(new(utils.ResourceProfileWithAPIOpts)) gob.Register(new(utils.ResourceWithAPIOpts)) gob.Register(new(utils.TPResourceProfile)) + // IP + gob.Register(new(utils.IPAllocations)) + gob.Register(new(utils.IPProfile)) + gob.Register(new(utils.IPProfileWithAPIOpts)) + gob.Register(new(utils.IPAllocationsWithAPIOpts)) // Stats gob.Register(new(StatQueue)) gob.Register(new(StatQueueProfile)) diff --git a/general_tests/offline_internal_it_test.go b/general_tests/offline_internal_it_test.go index 48bcac667..59fe8643b 100644 --- a/general_tests/offline_internal_it_test.go +++ b/general_tests/offline_internal_it_test.go @@ -321,10 +321,10 @@ func TestOfflineInternal(t *testing.T) { // run with sudo t.Error(err) } else if dirs != 36 { t.Errorf("expected <%d> directories, received <%d>", 36, dirs) - } else if i > 6 && files != 31 { - t.Errorf("expected <%d> files, received <%d>", 31, files) - } else if i < 6 && files != 30 { - t.Errorf("expected <%d> files, received <%d>", 30, files) + } else if i > 6 && files != 33 { + t.Errorf("expected <%d> files, received <%d>", 33, files) + } else if i < 6 && files != 32 { + t.Errorf("expected <%d> files, received <%d>", 32, files) } }) @@ -345,7 +345,7 @@ func TestOfflineInternal(t *testing.T) { // run with sudo } else if dirs != 3 { t.Errorf("expected <%d> directories, received <%d>", 3, dirs) } else if files != 1 { - t.Errorf("expected <%d> files, received <%d>", 1, files) + t.Errorf("expected <%d> files, received <%d>", 3, files) } })