Fix test failure with changes to thread management.
authorCarl Hetherington <cth@carlh.net>
Sat, 7 Mar 2020 23:14:54 +0000 (00:14 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 7 Mar 2020 23:14:54 +0000 (00:14 +0100)
test/job_test.cc

index d93b4a0..cc1c7ba 100644 (file)
@@ -40,6 +40,11 @@ public:
 
        }
 
+       ~TestJob ()
+       {
+               stop_thread ();
+       }
+
        void set_finished_ok () {
                set_state (FINISHED_OK);
        }