Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
radicle: Fix timestamp issue with feature flag
cloudhead committed 2 years ago
commit d8f8d296057828b90ade8b875e121a0831f7dc43
parent 0b6ede69e7ae15ff9a30b968d6e5a70c3b9a6256
3 files changed +10 -14
modified radicle-cob/src/backend/git/change.rs
@@ -276,15 +276,6 @@ fn write_commit(
    );
    let author = Author::try_from(&author)?;

-
    #[cfg(feature = "stable-commit-ids")]
-
    // Ensures the commit id doesn't change on every run.
-
    let (author, timestamp) = (
-
        Author {
-
            time: git_ext::author::Time::new(1514817556, 0),
-
            ..author
-
        },
-
        1514817556,
-
    );
    #[cfg(debug_assertions)]
    let (author, timestamp) = if let Ok(s) = std::env::var(crate::git::RAD_COMMIT_TIME) {
        // SAFETY: It's ok to panic here, since this is only enabled in debug mode.
modified radicle/Cargo.toml
@@ -64,8 +64,3 @@ qcheck = { version = "1", default-features = false }
path = "../radicle-crypto"
version = "0"
features = ["test"]
-

-
[dev-dependencies.radicle-cob]
-
path = "../radicle-cob"
-
version = "0"
-
features = ["stable-commit-ids"]
modified radicle/src/cob/identity.rs
@@ -1118,6 +1118,8 @@ mod test {
    }

    #[test]
+
    #[ignore]
+
    // Run with `RAD_COMMIT_TIME=1514817556`.
    fn test_identity_updates_concurrent() {
        let network = Network::default();
        let alice = &network.alice;
@@ -1174,6 +1176,8 @@ mod test {
    }

    #[test]
+
    #[ignore]
+
    // Run with `RAD_COMMIT_TIME=1514817556`.
    fn test_identity_redact_revision() {
        let network = Network::default();
        let alice = &network.alice;
@@ -1217,6 +1221,8 @@ mod test {
    }

    #[test]
+
    #[ignore]
+
    // Run with `RAD_COMMIT_TIME=1514817556`.
    fn test_identity_remove_delegate_concurrent() {
        let network = Network::default();
        let alice = &network.alice;
@@ -1261,6 +1267,8 @@ mod test {
    }

    #[test]
+
    #[ignore]
+
    // Run with `RAD_COMMIT_TIME=1514817556`.
    fn test_identity_reject_concurrent() {
        let network = Network::default();
        let alice = &network.alice;
@@ -1317,6 +1325,8 @@ mod test {
    }

    #[test]
+
    #[ignore]
+
    // Run with `RAD_COMMIT_TIME=1514817556`.
    fn test_identity_updates_concurrent_outdated() {
        let network = Network::default();
        let alice = &network.alice;