Page MenuHomePhabricator

[services] Tests - Use lazy static instead of functions
ClosedPublic

Authored by karol on Jul 1 2022, 6:14 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 16, 2:27 AM
Unknown Object (File)
Sat, Nov 9, 5:37 AM
Unknown Object (File)
Tue, Nov 5, 4:32 PM
Unknown Object (File)
Wed, Oct 23, 2:45 AM
Unknown Object (File)
Sun, Oct 20, 10:14 PM
Unknown Object (File)
Fri, Oct 18, 8:27 PM
Unknown Object (File)
Oct 13 2024, 1:35 PM
Unknown Object (File)
Oct 13 2024, 1:35 PM

Details

Summary

Depends on D4413

Suggested in https://phab.comm.dev/D4325#124852
We can use Rust's lazy_static instead of functions to have static variables calculated in the runtime

Test Plan

services tests work as before

Diff Detail

Repository
rCOMM Comm
Branch
services-test
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek added a reviewer: ashoat.
This revision is now accepted and ready to land.Jul 2 2022, 6:41 PM
services/commtest/tests/lib/tools.rs
28–29 ↗(On Diff #14352)

It doesn't seem like this was formatted properly, despite coming after D4413 ("run cargo fmt") in the stack. Creating a Linear task ENG-1368 for @karol-bisztyga to resolve this