Skip to content

Commit 9e4ceea

Browse files
committed
fix: revert test
1 parent d888538 commit 9e4ceea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

enterprise/coderd/audit_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func TestEnterpriseAuditLogs(t *testing.T) {
6060
}, alogs.AuditLogs[0].Organization)
6161

6262
// OrganizationID is deprecated, but make sure it is set.
63-
require.Equal(t, o.ID, alogs.AuditLogs[0].Organization.ID)
63+
require.Equal(t, o.ID, alogs.AuditLogs[0].OrganizationID)
6464

6565
// Delete the org and try again, should be mostly empty.
6666
err = client.DeleteOrganization(ctx, o.ID.String())
@@ -76,7 +76,7 @@ func TestEnterpriseAuditLogs(t *testing.T) {
7676
require.Len(t, alogs.AuditLogs, 1)
7777

7878
// OrganizationID is deprecated, but make sure it is set.
79-
require.Equal(t, o.ID, alogs.AuditLogs[0].Organization.ID)
79+
require.Equal(t, o.ID, alogs.AuditLogs[0].OrganizationID)
8080

8181
// Some audit entries do not have an organization at all, in which case the
8282
// response omits the organization.
@@ -100,6 +100,6 @@ func TestEnterpriseAuditLogs(t *testing.T) {
100100
require.Equal(t, (*codersdk.MinimalOrganization)(nil), alogs.AuditLogs[0].Organization)
101101

102102
// OrganizationID is deprecated, but make sure it is empty.
103-
require.Equal(t, uuid.Nil, alogs.AuditLogs[0].Organization.ID)
103+
require.Equal(t, uuid.Nil, alogs.AuditLogs[0].OrganizationID)
104104
})
105105
}

0 commit comments

Comments
 (0)