Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 828f149

Browse files
chore: fix gpg forwarding test (cherry-pick #17355) (#17415)
Cherry-picked chore: fix gpg forwarding test (#17355) Co-authored-by: Dean Sheather <[email protected]>
1 parent 8a3ebac commit 828f149

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
@@ -78,3 +78,6 @@ result
7878

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

cli/ssh_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1908,7 +1908,9 @@ Expire-Date: 0
19081908
tpty.WriteLine("gpg --list-keys && echo gpg-''-listkeys-command-done")
19091909
listKeysOutput := tpty.ExpectMatch("gpg--listkeys-command-done")
19101910
require.Contains(t, listKeysOutput, "[ultimate] Coder Test <[email protected]>")
1911-
require.Contains(t, listKeysOutput, "[ultimate] Dean Sheather (work key) <[email protected]>")
1911+
// It's fine that this key is expired. We're just testing that the key trust
1912+
// gets synced properly.
1913+
require.Contains(t, listKeysOutput, "[ expired] Dean Sheather (work key) <[email protected]>")
19121914

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

0 commit comments

Comments
 (0)