mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
test(sidecar): drop stub-mode placeholder tautology tests
This commit is contained in:
1 parent
19950dffe1
commit
87506f4b74
1 file changed
-20
@@ -1,20 +0,0 @@
|
||||
//go:build !withsidecar
|
||||
|
||||
package sidecar
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestStub_IsPlaceholder(t *testing.T) {
|
||||
if !IsPlaceholder() {
|
||||
t.Errorf("default build should be a placeholder")
|
||||
}
|
||||
if EmbeddedSize() != 0 {
|
||||
t.Errorf("stub should have empty embedded JAR, got size %d", EmbeddedSize())
|
||||
}
|
||||
}
|
||||
|
||||
func TestStub_ExtractFails(t *testing.T) {
|
||||
if _, err := Extract(t.TempDir()); err == nil {
|
||||
t.Fatal("expected Extract to fail in stub mode")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user