Files
go-worm/lib/update/update_test.go
T

14 lines
215 B
Go
Raw Normal View History

package update
import (
"bytes"
"testing"
)
func TestDeployRejectsNonPE(t *testing.T) {
_, _, err := Deploy("0.0.0.0:5032", bytes.NewReader([]byte("not-exe")))
if err == nil {
t.Fatal("expected error")
}
}