[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dtache 42569d1c5f 036/158: Update broken tests
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dtache 42569d1c5f 036/158: Update broken tests |
Date: |
Wed, 19 Jan 2022 18:57:42 -0500 (EST) |
branch: externals/dtache
commit 42569d1c5f4e00488af974d7b1008319dd237d73
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Update broken tests
---
dtache.el | 3 +--
test/dtache-test.el | 8 ++++++--
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/dtache.el b/dtache.el
index 81a9063237..4e00d91dc8 100644
--- a/dtache.el
+++ b/dtache.el
@@ -701,8 +701,7 @@ Sessions running on current host or localhost are updated."
(defun dtache--session-truncate-command (session)
"Return a truncated string representation of SESSION's command."
- (let ((command (dtache--session-command session))
- (truncated-command))
+ (let ((command (dtache--session-command session)))
(if (<= (length command) dtache-max-command-length)
command
(concat
diff --git a/test/dtache-test.el b/test/dtache-test.el
index 283ea61c81..7d00db6aff 100644
--- a/test/dtache-test.el
+++ b/test/dtache-test.el
@@ -114,10 +114,14 @@
(ert-deftest dtache-test-session-truncate-command ()
(let ((dtache-max-command-length 7))
- (should (string= "12...78"
+ (dtache--session-truncate-command
+ (dtache--session-create :command "12345678"))
+ (should (string= "123...678"
(dtache--session-truncate-command
(dtache--session-create :command "12345678")))))
- (let ((dtache-max-command-length 6))
+ (let ((dtache-max-command-length 2))
+ (dtache--session-truncate-command
+ (dtache--session-create :command "12345678"))
(should (string= "1...8"
(dtache--session-truncate-command
(dtache--session-create :command "12345678"))))))
- [elpa] externals/dtache dae6db33db 083/158: Fix various minor problems, (continued)
- [elpa] externals/dtache dae6db33db 083/158: Fix various minor problems, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 52e839ff4a 007/158: Update README with links, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 7e8727f3a2 020/158: Add TODO to investigate unknown inactive sessions, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache b94baaeecd 021/158: Fix bug in setup notification, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 763246bffe 026/158: Remove explicit dependency on dtache-env, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 087e8f4c73 019/158: Update README, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache d574161815 042/158: Simplify buffer handling, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 1878cefb2f 038/158: Remove embark dependency, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 3c61776c7f 014/158: Fix dtache initialization, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 7c07950642 043/158: Implement better encapsulation of database, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 42569d1c5f 036/158: Update broken tests,
ELPA Syncer <=
- [elpa] externals/dtache ddf9bb6ade 039/158: Add action map example, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache c70c9366a5 028/158: Update test to test with/without dtache-env, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache d5aa90356a 029/158: Add CHANGELOG to project, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 4751b4d812 046/158: Implement a general timer function, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 1bc60af5a0 040/158: Update changelog and readme, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache d32b5752d6 034/158: Implement new deduplication strategy, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 36be431e18 032/158: Add workaround solution for MacOS users, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 80fca01eae 037/158: Update CHANGELOG, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache 8769db2acb 051/158: Fix error in dtache-shell-attach, ELPA Syncer, 2022/01/19
- [elpa] externals/dtache a36e89486f 055/158: Add package dtache-eshell, ELPA Syncer, 2022/01/19