hide out testcases that rely on etherkeystore until fixed

pull/102/head
James Sangalli 7 years ago
parent 1e891ed7a8
commit da7beccf1d
  1. 7
      TrustTests/Market/OrderRequestTest.swift
  2. 4
      TrustTests/Market/OrderSigningTests.swift
  3. 2
      TrustTests/Redeem/CreateRedeemTests.swift

@ -7,8 +7,7 @@ import BigInt
class OrderRequestTest : XCTestCase {
var expectations = [XCTestExpectation]()
let keystore = try! EtherKeystore()
let address: Address = .makeStormBird()
let keyStore = FakeEtherKeystore()
func testGetOrders() {
let expectation = self.expectation(description: "wait til callback")
@ -26,7 +25,7 @@ class OrderRequestTest : XCTestCase {
// let expectation = self.expectation(description: "wait til callback")
// expectations.append(expectation)
// var testOrdersList : Array<Order> = Array<Order>()
// let account = keystore.getAccount(for: address)!
// let account = keyStore.createAccount(password: "test")
// //set up test orders
// var indices = [UInt16]()
// indices.append(1)
@ -45,7 +44,7 @@ class OrderRequestTest : XCTestCase {
// )
// testOrdersList.append(testOrder1)
// let signedOrders = try! SignOrders().signOrders(orders: testOrdersList, account: account)
// let privateKey = keystore.exportPrivateKey(account: account)
// let privateKey = keyStore.exportPrivateKey(account: account)
// let publicKey = try! Secp256k1.shared.pubKeyFromPrivateKey(from: privateKey.dematerialize())
//
// OrdersRequest.init().putOrderToServer(signedOrders: signedOrders, publicKey: publicKey.hexString, callback: {

@ -7,7 +7,7 @@ import BigInt
class OrderSigningTests : XCTestCase {
var contractAddress = "0xacDe9017473D7dC82ACFd0da601E4de291a7d6b0"
let keystore = try! EtherKeystore()
let keystore = FakeEtherKeystore()
let address: Address = .makeStormBird()
func testSigningOrders() {
@ -31,7 +31,7 @@ class OrderSigningTests : XCTestCase {
let signOrders = SignOrders()
//let account = keystore.getAccount(for: address)!
let account = keystore.getAccount(for: address)!
//let signedOrders = try! signOrders.signOrders(orders: testOrdersList, account: account)
//XCTAssertGreaterThanOrEqual(2016, signedOrders.count)

@ -8,7 +8,7 @@ import BigInt
class CreateRedeemTests: XCTestCase {
var keyStore = FakeEtherKeystore()
let keyStore = FakeEtherKeystore()
//when loading qr only include signature in decimal and the indices
func testGenerateRedeem() {

Loading…
Cancel
Save