A bunch of fixes and improvements
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -239,7 +239,7 @@ mod tests {
|
||||
impl TestScript {
|
||||
fn new() -> Self {
|
||||
Self {
|
||||
name: StringKey::new("test"),
|
||||
name: StringKey::new("test".into()),
|
||||
is_marked_for_deletion: Default::default(),
|
||||
suppressed_count: AtomicUsize::new(0),
|
||||
test_count: AtomicUsize::new(0),
|
||||
@@ -247,7 +247,7 @@ mod tests {
|
||||
}
|
||||
fn new_with_name(name: &str) -> Self {
|
||||
Self {
|
||||
name: StringKey::new(name),
|
||||
name: StringKey::new(name.into()),
|
||||
is_marked_for_deletion: Default::default(),
|
||||
suppressed_count: AtomicUsize::new(0),
|
||||
test_count: AtomicUsize::new(0),
|
||||
@@ -424,7 +424,7 @@ mod tests {
|
||||
"test_b"
|
||||
);
|
||||
|
||||
set.remove(&StringKey::new("test_c"));
|
||||
set.remove(&StringKey::new("test_c".into()));
|
||||
assert!(aggregator.get_next().is_none());
|
||||
}
|
||||
|
||||
@@ -451,7 +451,7 @@ mod tests {
|
||||
"test_a"
|
||||
);
|
||||
|
||||
set.remove(&StringKey::new("test_b"));
|
||||
set.remove(&StringKey::new("test_b".into()));
|
||||
|
||||
assert_eq!(
|
||||
aggregator
|
||||
|
||||
@@ -398,7 +398,7 @@ mod tests {
|
||||
impl TestScript {
|
||||
fn new() -> Self {
|
||||
Self {
|
||||
name: StringKey::new("test"),
|
||||
name: StringKey::new("test".into()),
|
||||
container: AtomicPtr::<ScriptContainer>::default(),
|
||||
suppressed_count: AtomicUsize::new(0),
|
||||
marked_for_deletion: Default::default(),
|
||||
@@ -539,7 +539,7 @@ mod tests {
|
||||
|
||||
assert_eq!(
|
||||
container.script.read().as_ref().unwrap().name(),
|
||||
&StringKey::new("script2")
|
||||
&StringKey::new("script2".into())
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user