Skip to content

Commit 73109b3

Browse files
amreshhalexandear
andauthored
Update github/enterprise_audit_log_stream_test.go
Co-authored-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
1 parent 71aad8a commit 73109b3

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

github/enterprise_audit_log_stream_test.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -253,15 +253,16 @@ func TestNewAzureBlobStreamConfig(t *testing.T) {
253253
EncryptedSASURL: "ENCRYPTED",
254254
Container: "my-container",
255255
}
256+
256257
got := NewAzureBlobStreamConfig(true, cfg)
257-
if got.StreamType != "Azure Blob Storage" {
258-
t.Errorf("NewAzureBlobStreamConfig StreamType = %v, want Azure Blob Storage", got.StreamType)
259-
}
260-
if !got.Enabled {
261-
t.Errorf("NewAzureBlobStreamConfig Enabled = %v, want true", got.Enabled)
258+
259+
want := &AuditLogStreamConfig{
260+
Enabled: true,
261+
StreamType: "Azure Blob Storage",
262+
VendorSpecific: cfg,
262263
}
263-
if got.VendorSpecific == nil {
264-
t.Fatal("NewAzureBlobStreamConfig VendorSpecific is nil")
264+
if !cmp.Equal(got, want) {
265+
t.Errorf("NewAzureBlobStreamConfig = %+v, want %+v", got, want)
265266
}
266267
}
267268

0 commit comments

Comments
 (0)