fix: disable azureidentity test on darwin (#12979)

See https://github.com/coder/coder/issues/12978
This commit is contained in:
Colin Adler 2024-04-16 14:33:04 -05:00 committed by GitHub
parent 231fc26c92
commit 942e90270e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import (
"context" "context"
"crypto/x509" "crypto/x509"
"encoding/pem" "encoding/pem"
"runtime"
"testing" "testing"
"time" "time"
@ -14,6 +15,11 @@ import (
func TestValidate(t *testing.T) { func TestValidate(t *testing.T) {
t.Parallel() t.Parallel()
if runtime.GOOS == "darwin" {
// This test fails on MacOS for some reason. See https://github.com/coder/coder/issues/12978
t.Skip()
}
mustTime := func(layout string, value string) time.Time { mustTime := func(layout string, value string) time.Time {
ti, err := time.Parse(layout, value) ti, err := time.Parse(layout, value)
require.NoError(t, err) require.NoError(t, err)