]> gitweb.factorcode.org Git - factor.git/commitdiff
imap-tests: Reset test folder.
authorDoug Coleman <doug.coleman@gmail.com>
Thu, 9 Oct 2014 22:40:41 +0000 (15:40 -0700)
committerDoug Coleman <doug.coleman@gmail.com>
Thu, 9 Oct 2014 22:40:41 +0000 (15:40 -0700)
extra/imap/imap-tests.factor

index 04729d3d74d3aaf826f2a9333809a480d8a2c1f8..861ba733c16414814dd0ef0e16cc79f8773ebd66 100644 (file)
@@ -58,6 +58,12 @@ ERROR: no-imap-test-host ;
     [ get-test-host <imap4ssl> [ f f login ] with-stream ] [ ind>> ] recover
 ] unit-test
 
+! Try to reset test folder before starting tests
+[ ] [
+    [ base-folder delete-folder ] ignore-errors
+] imap-test
+
+
 [ ] [ \ imap-settings get-global [ ] with-imap-settings ] unit-test
 
 ! Newly created and then selected folder is empty.