Skip to content

Commit

Permalink
make presence detection part of test darwin only
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Pickett committed Sep 27, 2024
1 parent 98c8c51 commit 4d952b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ee/localserver/krypto-ec-middleware_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"net/http"
"net/http/httptest"
"net/url"
"runtime"
"strings"
"testing"
"time"
Expand Down Expand Up @@ -210,7 +211,10 @@ func TestKryptoEcMiddleware(t *testing.T) {
require.NotEmpty(t, rr.Body.String())

require.Equal(t, kolideKryptoEccHeader20230130Value, rr.Header().Get(kolideKryptoHeaderKey))
require.Equal(t, (0 * time.Second).String(), rr.Header().Get(kolideDurationSinceLastPresenceDetection))

if runtime.GOOS == "darwin" {
require.Equal(t, (0 * time.Second).String(), rr.Header().Get(kolideDurationSinceLastPresenceDetection))
}

// try to open the response
returnedResponseBytes, err := base64.StdEncoding.DecodeString(rr.Body.String())
Expand Down

0 comments on commit 4d952b2

Please sign in to comment.