Skip to content

Commit c6e75c2

Browse files
committed
Fix lint failures
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent 7c6c486 commit c6e75c2

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

coderd/database/dbauthz/dbauthz_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"golang.org/x/xerrors"
1414

1515
"cdr.dev/slog"
16+
1617
"github.com/coder/coder/v2/coderd/database/db2sdk"
1718
"github.com/coder/coder/v2/coderd/rbac/policy"
1819
"github.com/coder/coder/v2/codersdk"
@@ -2494,6 +2495,13 @@ func (s *MethodTestSuite) TestSystemFunctions() {
24942495
// TODO: update this test once we have a specific role for notifications
24952496
check.Args(database.FetchNewMessageMetadataParams{}).Asserts(rbac.ResourceSystem, policy.ActionRead)
24962497
}))
2498+
s.Run("GetNotificationMessagesByStatus", s.Subtest(func(db database.Store, check *expects) {
2499+
// TODO: update this test once we have a specific role for notifications
2500+
check.Args(database.GetNotificationMessagesByStatusParams{
2501+
Status: database.NotificationMessageStatusLeased,
2502+
Limit: 10,
2503+
}).Asserts(rbac.ResourceSystem, policy.ActionRead)
2504+
}))
24972505
}
24982506

24992507
func (s *MethodTestSuite) TestOAuth2ProviderApps() {

coderd/notifications/manager.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ import (
1616
"github.com/coder/coder/v2/codersdk"
1717
)
1818

19-
var (
20-
ErrInvalidDispatchTimeout = xerrors.New("dispatch timeout must be less than lease period")
21-
)
19+
var ErrInvalidDispatchTimeout = xerrors.New("dispatch timeout must be less than lease period")
2220

2321
// Manager manages all notifications being enqueued and dispatched.
2422
//

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
name = "coder-${osArch}";
9898
# Updated with ./scripts/update-flake.sh`.
9999
# This should be updated whenever go.mod changes!
100-
vendorHash = "sha256-xHrnqSq2Ya04d9Y48tbkQTNo9bYnp7LqcUnXXRbMFXE=";
100+
vendorHash = "sha256-HXDei93ALEImIMgX3Ez829jmJJsf46GwaqPDlleQFmk=";
101101
proxyVendor = true;
102102
src = ./.;
103103
nativeBuildInputs = with pkgs; [ getopt openssl zstd ];

0 commit comments

Comments
 (0)