Skip to content

Commit

Permalink
feat: add support in tester for plugins built with Go SDK (#149)
Browse files Browse the repository at this point in the history
feat: add support in tester for plugins built with Go SDK

Signed-off-by: Matt Leon <mattleon@google.com>
  • Loading branch information
leonm1 authored Dec 20, 2024
1 parent 2c8933f commit 337a350
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions plugins/WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,9 @@ http_archive(

# --- PLUGIN DEPENDENCIES ---

PROXY_WASM_CPP_HOST_COMMIT = "3212034ee6e75d54cbf91b65cc659772166442f4" # 2024-09-29
PROXY_WASM_CPP_HOST_COMMIT = "c4d7bb0fda912e24c64daf2aa749ec54cec99412" # 2024-12-19

PROXY_WASM_CPP_HOST_SHA256 = "2633ec772da7b0e51500328989a99a02570dbfdfe5ff74cbf83fa2d39b6e8cea"
PROXY_WASM_CPP_HOST_SHA256 = "3ea005e85d2b37685149c794c6876fd6de7f632f0ad49dc2b3cd580e7e7a5525"

http_archive(
name = "proxy_wasm_cpp_host",
Expand Down
5 changes: 3 additions & 2 deletions plugins/test/framework.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ namespace service_extensions_samples {
struct ContextOptions {
// Wasm logging output file.
std::ofstream log_file;
// Static time returned to wasm.
absl::Time clock_time = absl::UnixEpoch();
// Static time returned to wasm. Must be non-zero for Go plugin
// initialization.
absl::Time clock_time = absl::UnixEpoch() + absl::Milliseconds(1);
};

// Buffer class to handle copying to and from an individual BODY chunk.
Expand Down

0 comments on commit 337a350

Please sign in to comment.