82 | self.nodes[1].generatetoaddress(2, ADDRESS_BCRT1_UNSPENDABLE)
83 | self.sync_all()
84 |
85 | self.log.info("-alertnotify should not continue notifying for more unknown version blocks")
86 | - assert_equal(len(os.listdir(self.alertnotify_dir)), 0)
87 | + assert_equal(len(os.listdir(self.alertnotify_dir)), 1)
I suppose it could generate the same notification and then the file would be the same — there could be a race to the same file though — but maybe we should ensure the alert notify command always creates a new file, for instance, append the timestamp to the filename?