From 407c6a5db6c1f1cfb40bd6113f07f067d07885a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADt=20Ondruch?= Origin: https://github.com/mustache/mustache/pull/258 Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954503 Date: Mon, 27 Apr 2020 11:16:17 +0200 Subject: [PATCH] Fix test race condition. The test suite randomly fails with errors such as: ~~~ 1) Failure: AutoloadingTest#test_autoload_lowercase [/builddir/build/BUILD/mustache-1.1.1/usr/share/gems/gems/mustache-1.1.1/test/autoloading_test.rb:17]: Expected: Comments Actual: nil ~~~ This happens when `test_namespaced*` test cases are executed earlier than the remaining test cases, because they are defining `view_namespace` but not cleaning up afterwards. --- test/autoloading_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/autoloading_test.rb b/test/autoloading_test.rb index 0a7ad762..77eb3557 100644 --- a/test/autoloading_test.rb +++ b/test/autoloading_test.rb @@ -7,6 +7,10 @@ def setup Mustache.view_path = File.dirname(__FILE__) + '/fixtures' end + def teardown + Mustache.remove_instance_variable(:@view_namespace) if Mustache.instance_variable_defined?(:@view_namespace) + end + def test_autoload klass = Mustache.view_class(:Comments) assert_equal Comments, klass e-travel-manifest.scm?id=95478222c05429c53be32a2e4c5ba7c9e8dfa8b0'>commitdiff
path: root/etc/time-travel-manifest.scm
AgeCommit message (Expand)Author
2024-03-10time-travel-manifest: Uncomment all the past releases....This reverts a4c35c607cfd7d6b0bad90cfcc46188d489e1754. * etc/time-travel-manifest.scm (%release-commits): Uncomment all the revisions. Change-Id: I6abdb760cbcf06597d843cabc5fd973ee916dc77 Ludovic Courtès
2023-09-09time-travel-manifest: Comment out versions older than 1.3.0 for now....* etc/time-travel-manifest.scm (%release-commits): Comment out revisions older than 1.3.0. Ludovic Courtès
2023-09-09time-travel-manifest: Add 1.4.0....* etc/time-travel-manifest.scm (%release-commits): Add 1.4.0. Ludovic Courtès
2022-08-17time-travel-manifest: Use a separate cache per system....* etc/time-travel-manifest.scm (<guix-instance-compiler>): Use a separate cache per system so that parallel system evaluations do no step on each other's toes. Mathieu Othacehe
2022-07-10time-travel-manifest: Use a separate Git checkout cache....* etc/time-travel-manifest.scm (guix-instance-compiler): Parameterize %REPOSITORY-CACHE-DIRECTORY. Ludovic Courtès
2022-07-08etc: Add 'time-travel-manifest.scm'....This manifest makes it easy to test travels from the current revision back to the revision of a past Guix release. Suggested by zimoun <zimon.toutoune@gmail.com>. * etc/time-travel-manifest.scm: New file. * Makefile.am (EXTRA_DIST): Add it. Ludovic Courtès