Skip to content

Commit ba29269

Browse files
eggertstassats
authored andcommitted
Simplify message timestamp formatting
* slime-tests.el (slime-wait-condition): Use format-time-string rather than formatting by hand. This avoids relying on Emacs timestamp format, which is slated to change.
1 parent 829310b commit ba29269

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

slime-tests.el

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,9 +200,8 @@ conditions (assertions)."
200200
(defun slime-wait-condition (name predicate timeout)
201201
(let ((end (time-add (current-time) (seconds-to-time timeout))))
202202
(while (not (funcall predicate))
203-
(let ((now (current-time)))
204-
(message "waiting for condition: %s [%s.%06d]" name
205-
(format-time-string "%H:%M:%S" now) (cl-third now)))
203+
(message "waiting for condition: %s [%s]" name
204+
(format-time-string "%H:%M:%S.%6N"))
206205
(cond ((time-less-p end (current-time))
207206
(error "Timeout waiting for condition: %S" name))
208207
(t

0 commit comments

Comments
 (0)