[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ssh-deploy 85a7c37 080/133: Added unit tests for asynch
From: |
Stefan Monnier |
Subject: |
[elpa] externals/ssh-deploy 85a7c37 080/133: Added unit tests for asynchronous operations |
Date: |
Sat, 27 Mar 2021 14:48:48 -0400 (EDT) |
branch: externals/ssh-deploy
commit 85a7c3704bb91ce200d8907666ed12833c4adcff
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>
Added unit tests for asynchronous operations
---
ssh-deploy-test.el | 12 ++++++++++++
ssh-deploy.el | 2 +-
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/ssh-deploy-test.el b/ssh-deploy-test.el
index 382f87b..fd9537d 100644
--- a/ssh-deploy-test.el
+++ b/ssh-deploy-test.el
@@ -87,6 +87,8 @@
;; Download file
(ssh-deploy-download file-b file-a 0 nil 0)
+ (when (> async 0)
+ (sleep-for 1))
;; Verify that both files have equal contents
(should (equal t (ediff-same-file-contents file-a file-b)))
@@ -154,6 +156,8 @@
;; Rename filename
(find-file file-a-old)
(ssh-deploy-rename file-a-old file-a-new)
+ (when (> async 0)
+ (sleep-for 1))
;; Both old files should not exist anymore
(should (equal nil (file-exists-p file-a-old)))
@@ -165,6 +169,8 @@
;; Delete file
(ssh-deploy-delete-both file-a-new)
+ (when (> async 0)
+ (sleep-for 1))
(kill-buffer)
;; Both new files should not exist anymore
@@ -213,6 +219,8 @@
(find-file file-a)
(insert file-a-contents)
(save-buffer) ;; NOTE Should trigger upload action
+ (when (> async 0)
+ (sleep-for 1))
;; Verify that both files have equal contents
(should (equal t (ediff-same-file-contents file-a file-b)))
@@ -225,11 +233,15 @@
;; Update should not trigger upload
(insert file-a-contents)
(save-buffer)
+ (when (> async 0)
+ (sleep-for 1))
;; Verify that both files have equal contents
(should (equal nil (ediff-same-file-contents file-a file-b)))
(ssh-deploy-upload-handler)
+ (when (> async 0)
+ (sleep-for 1))
(kill-buffer)
;; Verify that both files have equal contents
diff --git a/ssh-deploy.el b/ssh-deploy.el
index 4961931..fa2d436 100644
--- a/ssh-deploy.el
+++ b/ssh-deploy.el
@@ -320,7 +320,7 @@
(when ftp-netrc
;; Pass ange-ftp setting to asynchronous process
(defvar ange-ftp-netrc-filename ftp-netrc))
- (add-to-list 'load-path ,script-filename)
+ (add-to-list 'load-path script-filename)
(autoload 'ediff-same-file-contents "ediff-util")
(autoload 'string-remove-prefix "subr-x")
- [elpa] externals/ssh-deploy f61f1ef 041/133: Fixed bug where all DirectoryVariables was not passed on from handlers, (continued)
- [elpa] externals/ssh-deploy f61f1ef 041/133: Fixed bug where all DirectoryVariables was not passed on from handlers, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy a1a9d3c 051/133: Work on lisp code styling with (if), (progn) and (when), Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy e0bf686 054/133: More (if), (when) and (progn) optimizations, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy efc8be3 058/133: Added another example using plug-in functions from script, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 4044f78 064/133: Hydra compilation working, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy ae5354a 065/133: Fixed issue were remote paths with symlinks didn't work with recursive diff function, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 6e37aae 067/133: Added unit test for download, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 8107b9e 073/133: Added unit test for rename and delete, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy e895d6d 079/133: Replaced asynchronous (require) with (autoload), Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 5846974 082/133: Added instructions about how to trigger unit test with async.el integration, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 85a7c37 080/133: Added unit tests for asynchronous operations,
Stefan Monnier <=
- [elpa] externals/ssh-deploy 6ddb12b 090/133: All unit tests for remote changes sync and async and compilation passing, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 8e2507b 085/133: Refactored remote changes function and made unit tests for it, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 8c26f61 091/133: Updated version and change-date, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 6d20dae 109/133: Fixed issue were async directory diff would lock main thread for resolving file links when using the handler, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 9c73fef 110/133: Added support for asynchronous file difference check, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 045e463 095/133: Trying emacs version manager in travis, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 438c1b4 107/133: Do not allow failures on emacs snapshot, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 24fec85 096/133: Added Travis build status to README, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy 316395c 089/133: Updated version and date, Stefan Monnier, 2021/03/27
- [elpa] externals/ssh-deploy f462007 105/133: More work on directory difference unit test, Stefan Monnier, 2021/03/27