Skip to content

Commit 3198766

Browse files
committed
chore: fix gpg forwarding test
1 parent 0472a88 commit 3198766

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,6 @@ result
7979

8080
# Zed
8181
.zed_server
82+
83+
# dlv debug binaries for go tests
84+
__debug_bin*

cli/ssh_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1977,7 +1977,9 @@ Expire-Date: 0
19771977
tpty.WriteLine("gpg --list-keys && echo gpg-''-listkeys-command-done")
19781978
listKeysOutput := tpty.ExpectMatch("gpg--listkeys-command-done")
19791979
require.Contains(t, listKeysOutput, "[ultimate] Coder Test <test@coder.com>")
1980-
require.Contains(t, listKeysOutput, "[ultimate] Dean Sheather (work key) <dean@coder.com>")
1980+
// It's fine that this key is expired. We're just testing that the key trust
1981+
// gets synced properly.
1982+
require.Contains(t, listKeysOutput, "[ expired] Dean Sheather (work key) <dean@coder.com>")
19811983

19821984
// Try to sign something. This demonstrates that the forwarding is
19831985
// working as expected, since the workspace doesn't have access to the

0 commit comments

Comments
 (0)