Skip to content

Commit

Permalink
example(hostname): remove variable hostname from test
Browse files Browse the repository at this point in the history
  • Loading branch information
divyenduz committed Oct 21, 2024
1 parent c18635c commit 0e16221
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions examples/pghostname_zig/expected/pghostname_zig_test.out
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
CREATE EXTENSION pghostname_zig;
SELECT COALESCE(length(pghostname_zig()), 0) > 0;
INFO: hostname: ubuntu

?column?
----------
t
Expand Down
1 change: 0 additions & 1 deletion examples/pghostname_zig/src/main.zig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ comptime {
fn pghostname_zig() ![]const u8 {
var buffer: [std.posix.HOST_NAME_MAX]u8 = undefined;
const hostname = try std.posix.gethostname(&buffer);
pgzx.elog.Info(@src(), "hostname: {s}\n", .{hostname});
return hostname;
}

Expand Down

0 comments on commit 0e16221

Please sign in to comment.