Skip to content

Commit

Permalink
Fix cargo login token tests
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Aug 18, 2023
1 parent 39423d1 commit 5d36b91
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions test/rustic-cargo-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ fn test() {
(ert-deftest rustic-cargo-login-test ()
(let* ((process-environment (cl-copy-list process-environment))
(tempdir (concat (temporary-file-directory) (file-name-as-directory "rustic-cargo-login-test")))
(credfile (concat tempdir "credentials")))
(credfile (concat tempdir "credentials.toml")))

(when (file-exists-p credfile) (delete-file credfile))

Expand All @@ -268,5 +268,4 @@ fn test() {
(with-temp-buffer
(find-file credfile)
(let ((buf-string (buffer-string)))
(message buf-string)
(should (string-match "\\\[registry\\\]\ntoken = \"test-credentials\"\n" buf-string))))))

0 comments on commit 5d36b91

Please sign in to comment.