Skip to content

Commit 100e7dd

Browse files
committed
Making sure unknown OS returns error
1 parent ccf6a96 commit 100e7dd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

entropychecker_test.go

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ func TestFailure(t *testing.T) {
4444
supportedOS = "unknown"
4545
Timeout = 10 * time.Second
4646
MinimumEntropy = 128
47+
_, err = GetEntropy()
48+
if err == nil {
49+
t.Error("Should get error when using unknown OS")
50+
}
4751
err = WaitForEntropy()
4852
if err == nil {
4953
t.Error("Should get error when using unknown OS")

0 commit comments

Comments
 (0)