Skip to content

Commit e38744c

Browse files
committed
Remove some unnecessary assertions
The first audit action test covers testing that a crate starts without any audit actions, and it's unlikely these assertions will ever fail.
1 parent 3b1061f commit e38744c

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/tests/krate.rs

-17
Original file line numberDiff line numberDiff line change
@@ -1629,13 +1629,6 @@ fn yank_records_an_audit_action() {
16291629

16301630
let json = anon.show_version("fyk", "1.0.0");
16311631
let version_id = json.version.id;
1632-
app.db(|conn| {
1633-
assert!(
1634-
VersionOwnerAction::by_version_id_and_action(conn, version_id, VersionAction::Yank)
1635-
.unwrap()
1636-
.is_empty()
1637-
)
1638-
});
16391632

16401633
// yank it
16411634
token.yank("fyk", "1.0.0").good();
@@ -1671,16 +1664,6 @@ fn unyank_records_an_audit_action() {
16711664
// yank version 1.0.0
16721665
token.yank("fyk", "1.0.0").good();
16731666

1674-
app.db(|conn| {
1675-
assert!(VersionOwnerAction::by_version_id_and_action(
1676-
conn,
1677-
version_id,
1678-
VersionAction::Unyank
1679-
)
1680-
.unwrap()
1681-
.is_empty())
1682-
});
1683-
16841667
// unyank version 1.0.0
16851668
token.unyank("fyk", "1.0.0").good();
16861669

0 commit comments

Comments
 (0)