aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/main_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/mbf/main_test.go')
-rw-r--r--cmd/mbf/main_test.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/cmd/mbf/main_test.go b/cmd/mbf/main_test.go
index a5b33e90..4554b250 100644
--- a/cmd/mbf/main_test.go
+++ b/cmd/mbf/main_test.go
@@ -9,7 +9,7 @@ import (
)
func TestMain(m *testing.M) {
- rosa.DropCaches("", rosa.OptLLVMNoLTO)
+ rosa.Native().DropCaches("", rosa.OptLLVMNoLTO)
os.Exit(m.Run())
}
@@ -35,10 +35,10 @@ func TestCureAll(t *testing.T) {
}
})
- for i := range rosa.PresetEnd {
- p := rosa.PArtifact(i)
- t.Run(rosa.GetMetadata(p).Name, func(t *testing.T) {
- _, err := cureRemote(t.Context(), &addr, rosa.Std.Load(p), 0)
+ for _, handle := range rosa.Native().Collect() {
+ a, _ := rosa.Native().MustLoad(rosa.Std, handle)
+ t.Run(rosa.Native().MustGet(handle).Name, func(t *testing.T) {
+ _, err := cureRemote(t.Context(), &addr, a, 0)
if err != nil {
t.Error(err)
}