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

Skip to content

Commit 8b5adaa

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

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1913,7 +1913,9 @@ Expire-Date: 0
19131913
tpty.WriteLine("gpg --list-keys && echo gpg-''-listkeys-command-done")
19141914
listKeysOutput := tpty.ExpectMatch("gpg--listkeys-command-done")
19151915
require.Contains(t, listKeysOutput, "[ultimate] Coder Test <[email protected]>")
1916-
require.Contains(t, listKeysOutput, "[ultimate] Dean Sheather (work key) <[email protected]>")
1916+
// It's fine that this key is expired. We're just testing that the key trust
1917+
// gets synced properly.
1918+
require.Contains(t, listKeysOutput, "[ expired] Dean Sheather (work key) <[email protected]>")
19171919

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

0 commit comments

Comments
 (0)