Move to highhash and fix tests
This commit is contained in:
parent
8e0a3e8b32
commit
ce31f89fb9
4 changed files with 5 additions and 5 deletions
|
@ -24,7 +24,7 @@ ureq = { version = "^2", features = ["json"], optional = true}
|
|||
base64 = "^0.13"
|
||||
num_enum = "^0.5"
|
||||
chrono = {version = "^0.4", optional = true}
|
||||
fasthash = {version = "^0.4", optional = true}
|
||||
highhash = {version = "^0.1", optional = true}
|
||||
half = {version = "^1.7", optional = true}
|
||||
libfj_parsable_macro_derive = {version = "0.5.3", optional = true}
|
||||
#libfj_parsable_macro_derive = {path = "./parsable_macro_derive", optional = true}
|
||||
|
@ -38,5 +38,5 @@ tokio = { version = "1.4.0", features = ["macros"]}
|
|||
simple = ["ureq"]
|
||||
robocraft = ["reqwest"]
|
||||
cardlife = ["reqwest"]
|
||||
techblox = ["chrono", "fasthash", "half", "libfj_parsable_macro_derive"]
|
||||
techblox = ["chrono", "highhash", "half", "libfj_parsable_macro_derive"]
|
||||
convert = ["obj", "genmesh"]
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
use fasthash::murmur3::hash32_with_seed;
|
||||
use highhash::murmur::hash32_with_seed;
|
||||
use std::sync::mpsc::{channel, Sender};
|
||||
use std::thread;
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ async fn robocraft_factory_custom_query() -> Result<(), ()> {
|
|||
#[tokio::test]
|
||||
async fn robocraft_factory_player_query() -> Result<(), ()> {
|
||||
let result = builder()
|
||||
.text("Baerentoeter".to_string())
|
||||
.text("MilanZhi".to_string()) // there is a featured robot by this user, so this should never fail
|
||||
.text_search_type(robocraft::FactoryTextSearchType::Player)
|
||||
.items_per_page(10)
|
||||
.send().await;
|
||||
|
|
|
@ -58,7 +58,7 @@ fn robocraft_factory_custom_query_simple() -> Result<(), ()> {
|
|||
#[cfg(all(feature = "simple", feature = "robocraft"))]
|
||||
fn robocraft_factory_player_query() -> Result<(), ()> {
|
||||
let result = builder()
|
||||
.text("Baerentoeter".to_string())
|
||||
.text("MilanZhi".to_string()) // there is a featured robot by this user, so this should never fail
|
||||
.text_search_type(robocraft::FactoryTextSearchType::Player)
|
||||
.items_per_page(10)
|
||||
.send();
|
||||
|
|
Loading…
Add table
Reference in a new issue