fix: use snack.Manager interface type for capability assertions in integration tests

Type assertions require an interface type, not a concrete struct pointer.
Changed all integration tests from 'mgr := pkg.New()' to
'var mgr snack.Manager = pkg.New()' so capability checks like
mgr.(snack.VersionQuerier) compile correctly.
This commit is contained in:
2026-02-26 01:47:25 +00:00
parent ae0709e2d4
commit fa7bd7a79b
8 changed files with 8 additions and 8 deletions

View File

@@ -13,7 +13,7 @@ import (
)
func TestIntegration_Flatpak(t *testing.T) {
mgr := flatpak.New()
var mgr snack.Manager = flatpak.New()
if !mgr.Available() {
t.Skip("flatpak not available — install it first")
}