fix: more test fixes
This commit is contained in:
parent
20c167b37d
commit
9679b0cedf
2 changed files with 2 additions and 2 deletions
|
|
@ -494,7 +494,7 @@ const KQueueBackend = struct {
|
|||
self.watches.deinit(allocator);
|
||||
var sit = self.snapshots.iterator();
|
||||
while (sit.next()) |entry| {
|
||||
allocator.free(entry.key_ptr.*);
|
||||
// Keys are borrowed from self.watches and freed in the watches loop above.
|
||||
var names = entry.value_ptr.*;
|
||||
var nit = names.iterator();
|
||||
while (nit.next()) |ne| allocator.free(ne.key_ptr.*);
|
||||
|
|
|
|||
|
|
@ -148,7 +148,7 @@ fn makeTempDir(allocator: std.mem.Allocator) ![]u8 {
|
|||
const name = try std.fmt.allocPrint(
|
||||
allocator,
|
||||
"/tmp/nightwatch_test_{d}_{d}",
|
||||
.{ std.os.linux.getpid(), n },
|
||||
.{ std.c.getpid(), n },
|
||||
);
|
||||
errdefer allocator.free(name);
|
||||
try std.fs.makeDirAbsolute(name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue