mirror of
https://github.com/gogrlx/snack.git
synced 2026-04-02 05:08:42 -07:00
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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user