mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 23:23:28 +00:00
fix test
This commit is contained in:
@@ -1699,8 +1699,9 @@ const MockCDP = struct {
|
|||||||
self.messages.deinit(allocator);
|
self.messages.deinit(allocator);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn processMessage(self: *MockCDP, message: []const u8) void {
|
fn processMessage(self: *MockCDP, message: []const u8) bool {
|
||||||
const owned = self.allocator.dupe(u8, message) catch unreachable;
|
const owned = self.allocator.dupe(u8, message) catch unreachable;
|
||||||
self.messages.append(self.allocator, owned) catch unreachable;
|
self.messages.append(self.allocator, owned) catch unreachable;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user